The Slider Component > FSlider.setEnabled()

 

FSlider.setEnabled()

Availability

Flash Player 6.

Usage

mySlider_sld.setEnabled (enabled)

Parameters

enabled A Boolean value specifying whether the slider is enabled (true) or disabled (false).

Returns


Nothing

Description

Specifies whether the component is enabled (true) or disabled (false). If the component is disabled, it will not accept mouse or keyboard interaction from the user. The component will also be grayed-out to visually indicate its state to the user.

Example

The slider_getEnabled.fla example file contains an example of using this method.

The following code both enables and disables the component.

mySlider_sld.setEnabled(true); // enabled the component
mySlider_sld.setEnabled(false); // disables the component